<%@ page language="java" pageEncoding="utf-8" %>
<%@ include file="../../common/head_admin.jsp" %>
<link rel="stylesheet" type="text/css" href="../css/admin.css" />
<div id="admin_right">
<div class="content_box" style="border:none">
	<div class="content">
	<table width="97%" cellspacing="0" cellpadding="0" class="border_table_org" style="float:left">
			<thead>
				<tr><th>化合物管理</th></tr>
			</thead>
			<tbody>
            	<tr>
                	<td>
     <form action="${ctx }/manage/chem/list.do" method="post">
<table>
	<tr>
		<td height="23">英文名称</td>
		<td><input type="text" class="smallsearch" name="name_en" id="name_en" value="${name_en} "/></td>
		
		<td height="23">中文名称</td>
		<td><input type="text"  class="smallsearch" name="name_cn" id="name_cn" value="${name_cn}"/></td>
		
		<td height="23">分子式</td>
		<td><input type="text"  class="smallsearch" name="molecular_formula" id="molecular_formula" value="${molecular_formula}"/></td>
		<td height="23">CAS号：</td>
		<td><input type="text"  class="smallsearch" name="cas_rn" id="cas_rn" value="${cas_rn}"/></td>
		<td height="23">类别：</td>
        <td><input type="text"  class="smallsearch" name="#" id="#" value=" "/></td>
		<td><input type="submit" value="搜索"/></td>
	</tr>
	<tr>
	<td height="22" colspan="11">
	 <img alt="搜索" src="${ctx }/manage/images/searchbg1.gif">		
		 <c:forEach items="${filterList}" var="condition" varStatus="s">
			<c:if test="${s.count!=1}">
				+
			</c:if>
			${condition.displayName } <a href="${ctx }/manage/chem/list.do${condition.url}" class="orange"> 删除 </a>
		 </c:forEach>
	</td>
	</tr>
</table>
</form>
                    </td>
                </tr>
				<tr>
					<td style="padding:5px 0">
				  <table class="list_table3" width="100%">
							<colgroup>
								<col width="5%"/>
								<col width="15%" />
								<col width="15%" />
								<col width="15%" />
								<col width="15%" />
								<col width="15%" />
                                <col width="15%" />
							</colgroup>
							<thead>
                            		<th>ID</th>
									<th>英文名称</th>
									<th>中文名称</th>
									<th>分子式</th>
									<th>CAS号</th>
									<th>结构式</th>
									<th>操作</th>
                                    <th>删除</th>
							</thead>
							<tbody>
              			  <c:forEach items="${chemInfoList}" var="chem" varStatus="s">
                            <tr>
                              <td align="center">${chem.scr }  </td>
                              <td align="center">${chem.name_en }</td>
                              <td align="center">${chem.name_cn }</td>
                              <td align="center">${chem.molecular_formula }</td>
                              <td align="center">${chem.cas_rn }</td>
                              <td align="center"><img src="${ctx}/common/molPNG/${ chem.picture_Name}"/></td>                              
                              <td align="center"><A href="#">编辑</A></td>
                              <td align="center"><A href="javascript:if(confirm('确实要删除吗?'))location.href='${ctx }/manage/user/delete/${user.user_id}.do';">删除</A></td>
                            </tr>
                           </c:forEach>                            
							<tr>
                            	<td colspan="9" align="center"><p align="center">${tag }</p></td>
                            </tr>
							</tbody>
                            
						</table>
					</td>
				</tr>
			</tbody>
		</table>

	</div>
</div>
	</div>
	<div id="separator"></div>
</div>
<script type='text/javascript'>
	//隔行换色
	$(".list_table tr::nth-child(even)").addClass('even');
	$(".list_table tr").hover(
		function () {
			$(this).addClass("sel");
		},
		function () {
			$(this).removeClass("sel");
		}
	);
</script>
</body>
</html>